package cc.fs.zhihuapp.utils;

/**
 * Created by fostion on 2015/9/9.
 */
public class MyCallback {

    public interface Callback0<T> {
        void run(T param);
    }

    public interface Callback1<T, E> {
        void run(T param1, E param2);
    }

    public interface NetworkCallback0<T> {
        void success(T param);

        void failure(String errror);
    }

    public interface NetworkCallback1<T, E> {
        void success(T param1, E param2);

        void failure(String errror);
    }

}
